(use-package mule
  :hook
  ((text-mode org-mode) . qrthi/enable-input-method)
  :custom
  (default-input-method "TeX")
  :init
  (prefer-coding-system 'utf-8)
  (set-default-coding-systems 'utf-8)
  (set-language-environment 'utf-8)
  (set-selection-coding-system 'utf-8)
  (defun qrthi/enable-input-method (&optional method)
    (interactive)
    (if (not (eq current-input-method default-input-method))
	(progn
	  (toggle-input-method method)))))
